﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Data;
using System.Windows;

namespace SarkoCut.Model
{
    public class MainModel : INotifyPropertyChanged
    {
        #region Properties

        public string FileExtension { get; set; }


        private string _cueFile;
        public string CueFile 
        {
            get
            {
                return _cueFile;
            }

            set
            {
                _cueFile = value;
                OnPropertyChange("CueFile");
            }
        }

       
        private string _artist;
        public string Artist
        {
            get
            {
                return _artist;
            }

            set
            {
                _artist = value;
                OnPropertyChange("Artist");
            }
        }

        private string _album;
        public string Album
        {
            get
            {
                return _album;
            }

            set
            {
                _album = value;
                OnPropertyChange("Album");
            }
        }

        private string _releaseDate;
        public string ReleaseDate
        {
            get
            {
                return _releaseDate;
            }

            set
            {
                _releaseDate = value;
                OnPropertyChange("ReleaseDate");
            }
        }



        #endregion        

    
       

        #region Konstruktor
        public MainModel()
        {
        }


        #endregion

        #region Property changes
        public event PropertyChangedEventHandler PropertyChanged;
        /// <summary>
        /// Sobald sich eine Property ändert, wird es der View mitgeteilt
        /// </summary>
        /// <param name="propertyName">Property bzw. Eigebschaftsname</param>
        public void OnPropertyChange(string propertyName)
        {
            if(PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
        #endregion
    }
}
